using com.tc.assistance.engine;
using com.tc.assistance.entity.device;
using com.tc.assistance.protocol.entity;
using com.tc.zigbee.entity.device;
using com.tc.zigbee.mt;
using System.Collections.Generic;
namespace com.tc.zigbee.controller
{
    public class ZigbeeDeviceRemoteController : AbstractController, DeviceContainer
    {
        ZigbeeManager manager;
        string deviceId = "888888";

        override public GeneralDevice getDevice()
        {
            // TODO Auto-generated method stub
            GeneralDevice d = manager.getRemoteControlled();
            List<string> sc = new List<string>();
            sc.Add("sip");
            d.setSupportedChannel(sc);
            d.setId(deviceId);
            d.setOwnerId(HttpServer.getInstance().getServerConfig().user);
            return d;

        }
        public ZigbeeDeviceRemoteController(ZigbeeManager m)
        {

            this.manager = m;
        }
        public void commit()
        {
            // TODO Auto-generated method stub

        }
        public string getDeviceId()
        {
            return deviceId;
        }
        public void setDeviceId(string deviceId)
        {
            this.deviceId = deviceId;
        }


    }
}